// locutor
// (c) 2009, Normen Müller, normen.mueller@gmail.com  
// $Id: G.scala 4 2009-11-06 19:59:06Z normen.mueller $
package locutor.model

/** A graph model.
 * 
 * @author <a href="mailto:normen.mueller@googlemail.com">Normen M&#xFC;ller</a>
 * @version 0.0.1 */
private [locutor] class GraphModel(val name: String, val statements: List[String]) {
  
  def ++(gs: Option[List[GraphModel]]) = gs match {
    case Some(gs) => new GraphModel(name, statements ::: (gs flatMap (_.statements)))
    case None     => this
  }
  
}
